package com.andy.common.net

import com.andy.common.model.RecruitBean
import com.andy.common.model.ResultBean
import retrofit2.Response
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface ApiService {
    @FormUrlEncoded
    @POST(ApiConstants.PATH_LOGIN)
    suspend fun login(@Field("tel") tel: String, @Field("password") password: String): Response<ResultBean>

    @FormUrlEncoded
    @POST(ApiConstants.PATH_RECRUIT_LIST)
    suspend fun getRecruitList(@Field("keyword") keyword: String? = "", @Field("select_label_id_arr[]") ids: List<String>? = ArrayList(), @Field("pindex") index: Int? = 0, @Field("unlogin") unlogin: Int? = 1, @Field("is_except") is_except: Int? = 0): Response<RecruitBean>

    @FormUrlEncoded
    @POST(ApiConstants.PATH_QRCODE)
    suspend fun createQrcode(@Field("select_work_id_arr[]") ids: List<String>? = ArrayList(), @Field("unlogin") unlogin: Int? = 1): Response<Any>

}